package ProductAndConsumer;

public class Test {
    public static void main(String[] args) {
        Num n1 = new Num(0);
        Thread t1 = new Thread(new Producer(n1));
        Thread t2 = new Thread(new Consumer(n1));
        t1.setName("t1");
        t2.setName("t2");
        t1.start();
        t2.start();
    }
}
